<HTML>
<HEAD>
<meta charset="UTF-8">
<title>DataMessageObserver - amazon-chime-sdk</title>
<link rel="stylesheet" href="../../../style.css">
</HEAD>
<BODY>
<a href="../../index.html">amazon-chime-sdk</a>&nbsp;/&nbsp;<a href="../index.html">com.amazonaws.services.chime.sdk.meetings.realtime.datamessage</a>&nbsp;/&nbsp;<a href="./index.html">DataMessageObserver</a><br/>
<br/>
<h1>DataMessageObserver</h1>
<code><span class="keyword">interface </span><span class="identifier">DataMessageObserver</span></code>
<p><a href="./index.html">DataMessageObserver</a> lets one listen to data message receiving event.
One can subscribe this observer to multiple data message topic in order
to receive and process the message that sent to the topics.</p>
<p>Note: callback will be called on main thread.</p>
<h3>Functions</h3>
<table>
<tbody>
<tr>
<td>
<h4><a href="on-data-message-received.html">onDataMessageReceived</a></h4>
</td>
<td>
<p>Handles data message being received.</p>
<code><span class="keyword">abstract</span> <span class="keyword">fun </span><span class="identifier">onDataMessageReceived</span><span class="symbol">(</span><span class="identifier" id="com.amazonaws.services.chime.sdk.meetings.realtime.datamessage.DataMessageObserver$onDataMessageReceived(com.amazonaws.services.chime.sdk.meetings.realtime.datamessage.DataMessage)/dataMessage">dataMessage</span><span class="symbol">:</span>&nbsp;<a href="../-data-message/index.html"><span class="identifier">DataMessage</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a></code></td>
</tr>
</tbody>
</table>
</BODY>
</HTML>
